﻿<Application x:Class="WpfPdfReader.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Application.Resources>
        
        <ImageBrush x:Key="winBackground" ImageSource="images/背景色-01.png"/>

        <ImageBrush x:Key="previousButtonBackground1" ImageSource="images/上一页-01.png"/>
        <ImageBrush x:Key="previousButtonBackground2" ImageSource="images/上一页-02.png"/>

        <ImageBrush x:Key="nextButtonBackground1" ImageSource="images/下一页-01.png"/>
        <ImageBrush x:Key="nextButtonBackground2" ImageSource="images/下一页-02.png"/>

        <ImageBrush x:Key="pdfBackButtonBackground1" ImageSource="images/返回-01.png"/>
        <ImageBrush x:Key="pdfBackButtonBackground2" ImageSource="images/返回-02.png"/>

        <ImageBrush x:Key="zoomInBackground1" ImageSource="images/放大-01.png"/>
        <ImageBrush x:Key="zoomInBackground2" ImageSource="images/放大-01-01.png"/>

        <ImageBrush x:Key="zoomOutBackground1" ImageSource="images/缩小-01.png"/>
        <ImageBrush x:Key="zoomOutBackground2" ImageSource="images/缩小-01-01.png"/>

        <Style x:Key="ButtonLabelStyle" TargetType="Label">
            <Setter Property="Width" Value="60"/>
            <Setter Property="Height" Value="30"/>
            <Setter Property="Margin" Value="10,3,0,3"/>
            <Setter Property="Background" Value="LightGreen"/>
            <Setter Property="BorderBrush" Value="White"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Style.Triggers>
                <EventTrigger RoutedEvent="MouseEnter">
                    <BeginStoryboard >
                        <Storyboard Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)">
                            <ColorAnimation Duration="0:0:0.1" To="YellowGreen"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
                <EventTrigger RoutedEvent="MouseLeave">
                    <BeginStoryboard >
                        <Storyboard Storyboard.TargetProperty="(Background).(SolidColorBrush.Color)">
                            <ColorAnimation Duration="0:0:0.1"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Style.Triggers>
        </Style>
        
    </Application.Resources>
</Application>
